extends RichTextLabel

func _on_RichTextLabel_gui_input(event):
	if(event is InputEventMouseButton):
		if(event.button_index==BUTTON_LEFT&&event.pressed):
			sys.story()

func _on_RichTextLabel_mouse_entered():
	if(!sys.changing_scene):
		sys.pointer_mover.interpolate_property(sys.pointer,"rect_position",sys.pointer.rect_position,Vector2(120,210),0.2,Tween.TRANS_CUBIC,Tween.EASE_OUT)
		sys.pointer_mover.interpolate_property($"/root/sys/about/ctrl1/is","rect_position",$"/root/sys/about/ctrl1/is".rect_position,Vector2(160,220),0.2,Tween.TRANS_CUBIC,Tween.EASE_OUT)
		sys.pointer_mover.start()

func _on_RichTextLabel_mouse_exited():
	if(!sys.changing_scene):
		sys.pointer_mover.interpolate_property(sys.pointer,"rect_position",sys.pointer.rect_position,Vector2(60,210),0.2,Tween.TRANS_CUBIC,Tween.EASE_OUT)
		sys.pointer_mover.interpolate_property($"/root/sys/about/ctrl1/is","rect_position",$"/root/sys/about/ctrl1/is".rect_position,Vector2(120,220),0.2,Tween.TRANS_CUBIC,Tween.EASE_OUT)
		sys.pointer_mover.start()

func _exit_tree():
	sys.pointer.rect_position=Vector2(-64,0)
